# !/usr/bin/env python
# coding=utf-8
# @Time    : 2018/8/7 9:13
# @Author  : 6imensiva
# @Site    : https://gitee.com/dimensiva/rpc_dao.git
# @File    : my_sqlalchemy.py
# @Software: PyCharm
# @Version: 2.7.5


def obj_copy_with_same_name(src_obj, dst_obj):
	for i in dir(src_obj):
		if not i.startswith('_') and hasattr(dst_obj, i) and getattr(src_obj, i) and\
			i is not 'metadata':
			setattr(dst_obj, i, getattr(src_obj, i))
	return dst_obj